<?php
/**
 * Flea Site
 *
 * @copyright  Copyright (c) 2008 Movoin Studio (http://movoin.com)
 * @license    Apache License 2.0
 * @version    $Id: Settings.php 130 2009-05-21 14:23:24Z movoin $
 */

//{{include
FLEA::loadClass('Controller_Base');
//}}

class Controller_Settings extends Controller_Base
{

    function Controller_Settings()
    {
        parent::Controller_Base();
    }

    function actionIndex()
    {
        $this->_setBack();
        $data['focus'] = 'settings';
        $this->_executeView('settings', $data);
    }

    /**
     * 更新设置
     *
     */
    function actionUpdate()
    {
        js_alert($this->modelOptions->setOptions($_POST), 0, $this->_getBack());
    }

}
